- Dataset: Effectiveness of Insect Sprays (InsectSprays)
- Description: The counts of insects in agricultural experimental units treated with different insecticides
- Plot: Boxplot using plotly package
data("InsectSprays")
#renaming columns
names(InsectSprays) <- c("Count_of_Insects", "Type_of_Spray")
#creating plot assigned to p
p <- plot_ly(InsectSprays, x = ~Count_of_Insects,
y = ~Type_of_Spray, type = "box")